package map.android.baidu.carpool.data.impl;

import android.content.Context;
import com.baidu.lbs.net.http.model.ComNetData;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.response.ReceiveDaLiBaoResponse;
import map.android.baidu.carpool.setting.UserInfoSetting;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/4/10.
 */
public class ReceiveDaLiBaoData extends ComNetData<ReceiveDaLiBaoResponse>{

    private String actId;
    private String code;

    public ReceiveDaLiBaoData(Context context) {
        super(context);
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setActId(String actId) {
        this.actId = actId;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_DA_LI_BAO);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String, String> params = new HashMap<String, String>();
        params.put("actId", actId);
        params.put("code", code);
        params.put("bduss", UserInfoSetting.getBduss());
        return params;
    }
}
